package y23.May;

class Day{
    public String course;
    public int rest;
    public void eat(){
        System.out.println("吃饭");
    }
}
class Morning extends Day{
    public void qichuan(){
        System.out.println("刷牙洗脸");
    }
}
class Noon extends Day{
    public void swim(){
        System.out.println("天气太热，去游泳");
    }

}
class Afternoon extends Day{
    public void work(){
        System.out.println("写作业");
    }

}

public class OneDay {
    public static void main(String[] args) {

        Day day1 = new Morning();
        day1.eat();
    }
}

